<?php
// +----------------------------------------------------------------------
// | title: 标题注释
// +----------------------------------------------------------------------
// | Author: TZ.Leong
// +----------------------------------------------------------------------
// | Date: 2020/10/27 10:35
// +----------------------------------------------------------------------

namespace app\single\api;


use app\single\model\RoleModel;

class Player
{
    public function run($params)
    {
        $data["ret"] = 1;
        $roleId = $params["role_id"] ?? 0;//最大值
        $limit = $params["limit"] ?? 10000;

        $model = new RoleModel();
        $roleData = $model->where("id > $roleId")->limit($limit)->order("id ASC")->select();
        $data["data"] = $roleData;
        return $data;
    }
}